from django.conf import settings
from django.core.files.storage import Storage


class MyStorage(Storage):
    def __init__(self):
        self.base_url = settings.BASE_URL

    def url(self, name):
        return self.base_url + name
